import request from '@/utils/request'

// 查询资料信息列表
export function listDetial(query) {
  return request({
    url: '/teacherInfo/detial/list',
    method: 'get',
    params: query
  })
}

// 查询资料信息详细
export function getDetial(id) {
  return request({
    url: '/teacherInfo/detial/' + id,
    method: 'get'
  })
}

// 新增资料信息
export function addDetial(data) {
  return request({
    url: '/teacherInfo/detial',
    method: 'post',
    data: data
  })
}

// 修改资料信息
export function updateDetial(data) {
  return request({
    url: '/teacherInfo/detial',
    method: 'put',
    data: data
  })
}

// 删除资料信息
export function delDetial(id) {
  return request({
    url: '/teacherInfo/detial/' + id,
    method: 'delete'
  })
}
